import request from '@/utils/request.js'
//获取桌子列表
export const getTableList = () => {
  return request({
    url: '/table',
    method: 'get'
  })
}
//选择桌子状态 预约 or 立即开始
export const chooseTable = (data) => {
  return request({
    url: '/table',
    method: 'put',
    data
  })
}
//获取桌子详情
export const getTableDetail = (id) => {
  return request({
    url: '/table',
    method: 'get',
    params: {
      id
    }
  })
}
//计算该桌价钱
export const computeMoney = (data) => {
  return request({
    url: '/computed',
    method: 'post',
    data
  })
}
//预约校验
export const check = (data) => {
  return request({
    url: '/check',
    method: 'post',
    data
  })
}
